/*
* jlb
*/
package com.jlb.item.entity;

/**
 * 分类 的实体类的状态
 *
 * @author jlb
 */
public enum ItemCategoryState implements java.io.Serializable {
    //枚举定义在此
    ;

    public String val;

    ItemCategoryState(String val) {
        this.val = val;
    }

    /**
     * 根据状态名称查询状态
     *
     * @param stateName
     * @return
     */
    public static ItemCategoryState getEnum(String stateName) {
        for (ItemCategoryState itemCategoryState : ItemCategoryState.values()) {
            if (itemCategoryState.name().equalsIgnoreCase(stateName)) {
                return itemCategoryState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.name();
    }

}
